<?php

namespace App\Http\Requests\Api\v1;

use App\Models\Configuration;

class AdsRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        switch ($this->method()) {
            case 'POST':
                return [
                    'ads_config_id' => 'required|numeric|int|gt:0',
                    //'goods_id'     => 'required|numeric|int|gt:0|exists:App\Models\Goods,id',
                    'goods_id'     => 'required|numeric|int|gt:0',
                    //'recharge_address'     => 'required',
                ];
                break;
        }
    }

}
